package com.idp.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.idp.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户角色实体类
 * @author king
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("sys_user_role")
public class SysUserRoleEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/** 主键ID */
	@TableId(value = "id", type = IdType.ASSIGN_UUID)
	private String id;
	/** 用户ID */
	@TableField("user_id")
	private String userId;
	/** 角色ID */
	@TableField("role_id")
	private String roleId;

}
